package com.sskj.xgja.mine.data;

import com.sskj.xgja.R;

import sskj.lee.appupdatelibrary.BaseVersion;

public class AppVersionBean extends BaseVersion {


    /**
     * id : 4
     * title : android
     * appVersion : 1.1
     * createTime : 2019-03-27 19:16:46
     * upState : -1
     * downUrl : http://www.baidu.com
     * appSys : android
     * details :
     */

    private int id;
    private String title;
    private String appVersion;
    private String version;
    private String createTime;
    private int uptype;
    private String addr;
    private String appSys;
    private String details;


    @Override
    public String getContent() {
        return details;
    }

    @Override
    public String getUrl() {
        return addr;
    }

    @Override
    public int getNotifyIcon() {
        return R.mipmap.ic_launcher;
    }

    @Override
    public boolean isMustUp() {
        return uptype == 1;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAppVersion() {
        return version;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getUpState() {
        return uptype;
    }

    public void setUpState(int upState) {
        this.uptype = upState;
    }

    public String getDownUrl() {
        return addr;
    }

    public void setDownUrl(String downUrl) {
        this.addr = downUrl;
    }

    public String getAppSys() {
        return appSys;
    }

    public void setAppSys(String appSys) {
        this.appSys = appSys;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }
}
